package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBTrainingDay;
import ModelLayer.TrainingDay;

public class TrainingDayCTR
{
	public ArrayList<TrainingDay> findAllTrainingDay()
    {
		DBTrainingDay dbTrainingDay = new DBTrainingDay();
        ArrayList<TrainingDay> allTrainingDay = new ArrayList<TrainingDay>();
        allTrainingDay = dbTrainingDay.findAllTrainingDay(false);
        return allTrainingDay;
    }
	
	public TrainingDay findTrainingDayID(int TrainingDayID)
	{
		DBTrainingDay dbTrainingDay = new DBTrainingDay();
		return dbTrainingDay.searchTrainingDayID(TrainingDayID, true);
	}
	
	public TrainingDay findTrainingDayDate(String TrainingDayDate)
	{
		DBTrainingDay dbTrainingDay = new DBTrainingDay();
		return dbTrainingDay.searchTrainingDayDate(TrainingDayDate, true);
	}
}